package org.me.marble;

import javax.microedition.khronos.opengles.GL10;

/**
*
* @author tungi
*/

public class GameObject{
    protected int id;
    protected Texture texture;
    protected MyColor color;

    public GameObject(int id){
        this.id=id;
    }

    public void init(){
        
    }

    public void draw(GL10 gl){

    }

    public void loadTexture(int type){
        int texture_id=TextureLibrary.getTextureID(id);
        if(texture_id!=0)//not valid id
            texture=TextureFactory.loadTexture(texture_id,type);
    }

    public int getID(){
        return id;
    }

    public Texture getTexture(){
        return texture;
    }
}